﻿using System.ServiceModel;
using System.Data.SqlClient;
using System.Data;

namespace BLL.SystemMan
{
    [ServiceContract]
    public class Operatorsm
    {
        DAL.DALMethod myDAL = new DAL.DALMethod();

        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        public DataSet CheckOperatorsm()
        {
            //声明参数数组对象
            SqlParameter[] sqls =
            {
                //实例化数组对象，查询无条件使用@type，有条件再添加其他的@
                new SqlParameter("@type",SqlDbType.VarChar)
            };
            //数组元素赋值
            sqls[0].Value = "SelectOperatorsm";//存储语句名称
            //调用数据层查询方法
            DataSet ds = myDAL.QueryDataSet("Operatorsm", sqls);
            return ds;
        }
     
    }
}
